<?php
namespace example\abstractFactory\systemB;
require_once 'D:/laragon/www/tests/example/abstractFactory/AbstractFactory.php';
require_once 'ConcreteProductB1.php';
require_once 'ConcreteProductB2.php';
use example\abstractFactory\AbstractFactory;
use example\abstractFactory\ConcreteProductB1;
use example\abstractFactory\ConcreteProductB2;

//具体工厂类 - 交友社区系统
class ConcreteFactoryB extends AbstractFactory
{
    public function createNav($nav = [])
    {
        return new ConcreteProductB1($nav);
    }
    public function createText()
    {

    }
    public function createBtn($btn = [])
    {
        return new ConcreteProductB2([],$btn);
    }
}
